package com.example.controller;

import com.example.service.EnemyAttributeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ftl douyacai
 * @create 2017/12/2
 */
@Controller
@RequestMapping(value = "/test1")
public class EnemyAttributeController {

    @Autowired
    private EnemyAttributeService enemyAttributeService;

    @PostMapping(value = "/post")
    public String getLogin(HttpServletRequest request) {
        String userName = request.getParameter("userName");
        String password = request.getParameter("password");
        System.out.println("userName:" + userName + "-----password:" + password);
        return "";
    }

    @RequestMapping(value = "/demo")
    public String demo() {
        return "/sell/demo/demo";
    }
}
